package com.easy.easy.Controller;

import com.easy.easy.Service.LoginService;
import com.easy.easy.bean.Admin;
import com.easy.easy.bean.User;
import com.easy.easy.util.SYS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;

@Controller
public class AdminLoginController {
    @Autowired

    LoginService adminLoginService;


//@RequestMapping("system/doadminlogin")
//@ResponseBody
//    public String systemLogin(HttpSession session, Admin admin) {
//        Admin a=adminLoginService.doadminlogin(admin);
//        if (a != null) {
//            session.setAttribute(SYS.SYSTEM_LOGIN_ADMIN, a);
//            return "success";
//        }
//     return "fail";
//    }
}
